package com.ruoyi.domain;

import java.math.BigDecimal;
import java.util.Date;
import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Data;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.core.annotation.Excel;
import com.ruoyi.common.core.web.domain.BaseEntity;

/**
 * 员工对象 emp
 * 
 * @author ruoyi
 * @date 2025-01-11
 */
@Data
public class Emp extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 员工id */
    private Long eid;

    /** 员工名字 */
    @Excel(name = "员工名字")
    private String ename;

    /** 员工性别 */
    @Excel(name = "员工性别")
    private String egender;

    /** 员工身份证号 */
    @Excel(name = "员工身份证号")
    private String ecard;

    /** 员工婚姻状态 */
    @Excel(name = "员工婚姻状态")
    private String emaritalStatus;

    /** 员工住址 */
    @Excel(name = "员工住址")
    private String eadd;

    /** 员工再植状态 */
    @Excel(name = "员工再植状态")
    private String estatus;

    /** 部门id */
    @Excel(name = "部门id")
    private Long deid;

    /** 职位id */
    @Excel(name = "职位id")
    private String jid;

    /** 员工薪水 */
    @Excel(name = "员工薪水")
    private BigDecimal esalary;

    private Job jname;
    private  Department  dename;



    /** 员工入职时间 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "员工入职时间", width = 30, dateFormat = "yyyy-MM-dd")
    private Date estarttime;

    public Job getJname() {
        return jname;
    }

    public void setJname(Job jname) {
        this.jname = jname;
    }

    public Department getDename() {
        return dename;
    }
public void setDename(Department dename) {
    this.dename = dename;
}



    public Emp() {
    }

    public Emp(Long eid, String ename, String egender, String ecard, String emaritalStatus, String eadd, String estatus, Long deid, String jid, BigDecimal esalary, Job jname, Department dename, Date estarttime, Long institutionId, String spare1, String spare2, String spare3, String spare4) {
        this.eid = eid;
        this.ename = ename;
        this.egender = egender;
        this.ecard = ecard;
        this.emaritalStatus = emaritalStatus;
        this.eadd = eadd;
        this.estatus = estatus;
        this.deid = deid;
        this.jid = jid;
        this.esalary = esalary;
        this.jname = jname;
//        this.dename = dename;
        this.estarttime = estarttime;
        this.institutionId = institutionId;
        this.spare1 = spare1;
        this.spare2 = spare2;
        this.spare3 = spare3;
        this.spare4 = spare4;
    }



    /** 所属机构id */
    @Excel(name = "所属机构id")
    private Long institutionId;

    /** 备用1 */
    @Excel(name = "备用1")
    private String spare1;

    /** 备用2 */
    @Excel(name = "备用2")
    private String spare2;

    /** 备用3 */
    @Excel(name = "备用3")
    private String spare3;

    /** 备用4 */
    @Excel(name = "备用4")
    private String spare4;

    public void setEid(Long eid) 
    {
        this.eid = eid;
    }

    public Long getEid() 
    {
        return eid;
    }
    public void setEname(String ename) 
    {
        this.ename = ename;
    }

    public String getEname() 
    {
        return ename;
    }
    public void setEgender(String egender) 
    {
        this.egender = egender;
    }

    public String getEgender() 
    {
        return egender;
    }
    public void setEcard(String ecard) 
    {
        this.ecard = ecard;
    }

    public String getEcard() 
    {
        return ecard;
    }
    public void setEmaritalStatus(String emaritalStatus) 
    {
        this.emaritalStatus = emaritalStatus;
    }

    public String getEmaritalStatus() 
    {
        return emaritalStatus;
    }
    public void setEadd(String eadd) 
    {
        this.eadd = eadd;
    }

    public String getEadd() 
    {
        return eadd;
    }
    public void setEstatus(String estatus) 
    {
        this.estatus = estatus;
    }

    public String getEstatus() 
    {
        return estatus;
    }
    public void setDeid(Long deid) 
    {
        this.deid = deid;
    }

    public Long getDeid() 
    {
        return deid;
    }
    public void setJid(String jid) 
    {
        this.jid = jid;
    }

    public String getJid() 
    {
        return jid;
    }
    public void setEsalary(BigDecimal esalary) 
    {
        this.esalary = esalary;
    }

    public BigDecimal getEsalary() 
    {
        return esalary;
    }
    public void setEstarttime(Date estarttime) 
    {
        this.estarttime = estarttime;
    }

    public Date getEstarttime() 
    {
        return estarttime;
    }
    public void setInstitutionId(Long institutionId) 
    {
        this.institutionId = institutionId;
    }

    public Long getInstitutionId() 
    {
        return institutionId;
    }
    public void setSpare1(String spare1) 
    {
        this.spare1 = spare1;
    }

    public String getSpare1() 
    {
        return spare1;
    }
    public void setSpare2(String spare2) 
    {
        this.spare2 = spare2;
    }

    public String getSpare2() 
    {
        return spare2;
    }
    public void setSpare3(String spare3) 
    {
        this.spare3 = spare3;
    }

    public String getSpare3() 
    {
        return spare3;
    }
    public void setSpare4(String spare4) 
    {
        this.spare4 = spare4;
    }

    public String getSpare4() 
    {
        return spare4;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("eid", getEid())
            .append("ename", getEname())
            .append("egender", getEgender())
            .append("ecard", getEcard())
            .append("emaritalStatus", getEmaritalStatus())
            .append("eadd", getEadd())
            .append("estatus", getEstatus())
            .append("deid", getDeid())
            .append("jid", getJid())
            .append("esalary", getEsalary())
            .append("estarttime", getEstarttime())
            .append("institutionId", getInstitutionId())
            .append("spare1", getSpare1())
            .append("spare2", getSpare2())
            .append("spare3", getSpare3())
            .append("spare4", getSpare4())
            .toString();
    }
}
